/*
 * Copyright 2018 Zhongan.com All right reserved. This software is the
 * confidential and proprietary information of Zhongan.com ("Confidential
 * Information"). You shall not disclose such Confidential Information and shall
 * use it only in accordance with the terms of the license agreement you entered
 * into with Zhongan.com.
 */

package com.example.cloud.service;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 路径重写过滤器
 *
 * @author tongyufu
 */
@RestController
public class RewirtePathService {

    /**
     * hello
     *
     * @return hello
     */
    @RequestMapping("/rewirte/hello5")
    public String hello() {
        System.out.println("=====hello");
        return "hello";
    }

    /**
     * hello
     *
     * @return hello
     */
    @RequestMapping("/rewirte/world")
    public String rewirteWorld() {
        System.out.println("=====world");
        return "world";
    }

    /**
     * hello
     *
     * @return hello
     */
    @RequestMapping("/hello5")
    public String rewirteHello() {
        System.out.println("=====rewirteHello");
        return "hello5";
    }

    /**
     * hello
     *
     * @return hello
     */
    @RequestMapping("/redirect/hello")
    public String redirectHello() {
        System.out.println("=====redirectHello");
        return "redirectHello";
    }
}
